

class BooleanField < NamedField

  def class_body
    if name && name.length > 0
      "property :#{name}, Boolean\n"#+
      #"attr_reader :#{name}\n"+
      #"def #{name}= v\n  attribute_set(:#{name}, v)\nend"
    end
  end

  def validate value
    !!value
  end

  def thingswecanadd
    [CheckBoxThing]
  end
end